package com.gmlive.common.sample.push;

import android.content.Context;
import android.util.Log;

import com.meelive.ingkee.push.InkeBasePushReceiver;
import com.meelive.ingkee.push.model.InkePushType;

/**
 * Create by: fanfeiyue
 * on: 2019-09-28
 * desc:
 */
public class InkePushReceiver extends InkeBasePushReceiver {

    public final static String TAG = "InkePushReceiver";

    @Override
    public void onRegisterError(InkePushType pushType, long errorCode) {
        Log.i(TAG, "[receiver errorCode]，from：" + pushType + ", errorCode：" + errorCode);
    }

    @Override
    public void onReceiveToken(InkePushType pushType, String token) {
        Log.i(TAG, "[receiver token]，from：" + pushType + ", token：" + token);
    }

    @Override
    public void onPassThroughPush(Context context, InkePushType pushType, String message) {
        Log.i(TAG, "[receiver passThrough message]，from：" + pushType + ", message：" + message);
    }

    @Override
    public void onNotificationClick(Context context, InkePushType pushType, String message) {
        Log.i(TAG, "[receiver notify clicked message]，from：" + pushType + ", message：" + message);
    }

    @Override
    public void onNotificationArrived(Context context, InkePushType pushType, String message) {
        Log.i(TAG, "[receiver notify arrived message]，from：" + pushType + ", message：" + message);
    }
}
